package com.qingke.easyjava.exercise.besupercommand;

public class CommandFactory {
	
	
	
	public Command buildCommand(String identifier){
		if(identyfier.equalsIgnoreCase("exit")){
			return new ExitCommand();
		}
		if(identyfier.equalsIgnoreCase("help")){
			return new HelpCommand();
		}
		return null;
	}
}
